<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/diverse/xsl/rss.xsl" type="text/xsl"?>

<%@page import="javax.jdo.Query"%><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<%@page import="javax.jdo.PersistenceManager"%>
<%@page import="com.ykwep.web.server.PMF"%>
<%@page import="com.ykwep.web.server.data.NewsItem"%>
<%@page import="java.util.List"%>		
<%
List<NewsItem> newsItems = NewsItem.getAllPublishedNewsItems();

%>
  <channel>
    <atom:link href="http://<%= request.getServerName() %>/latest_news_feed_list.jsp" rel="self" type="application/rss+xml" />
    <lastBuildDate><%= (!newsItems.isEmpty()? newsItems.get(0) : "")%></lastBuildDate>
    <category>News</category>
    <title>Singing Code</title>
    <link>http://<%= request.getServerName() %></link>
    <description><![CDATA[Singing Code is a company focused on software development]]></description>
    <language>sv</language>

    <copyright>Copyright Singing Code Handelsbolag 2009. All rights reserved.</copyright>
 <%    
        for (NewsItem g : newsItems) {
%>
    <item>
      <title><![CDATA[<%= g.getTitle() %>]]></title>
      <description><![CDATA[<%= g.getContent() %>]]></description>
      <link>http://<%= request.getServerName() %>/show_news.jsp?news_item_id=<%= g.getId() %></link>
      <guid>http://<%= request.getServerName() %>/show_news.jsp?news_item_id=<%= g.getId() %></guid>
      <pubDate><%= g.getDate() %></pubDate>
    </item>
<%
       
       
    	
    }

%>
  </channel>
</rss>
<!-- Asp2Htm: Ok -->	